using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;

namespace DataTransferObject
{
    [Serializable()]
    public class clsBaiViet
    {
        private int _MaBaiViet;
        private string _TieuDe;
        private string _NoiDung;
        private clsTheLoai _TheLoai;
        private DateTime _NgayKhoiTao;
        private clsThanhVien _ThanhVien;
        private int _TinhTrang;
        private int _SoLuotXem;

        public clsBaiViet()
        {
        }

        public clsBaiViet(int MaBaiViet, string TieuDe, string NoiDung, clsTheLoai TheLoai, DateTime NgayKhoiTao, clsThanhVien ThanhVien,int TinhTrang, int SoLuotXem)
        {
            _MaBaiViet = MaBaiViet;
            _TieuDe = TieuDe;
            _NoiDung = NoiDung;
            _TheLoai = TheLoai;
            _NgayKhoiTao = NgayKhoiTao;
            _ThanhVien = ThanhVien;
            _TinhTrang = TinhTrang;
            _SoLuotXem = SoLuotXem;

        }

        public int MaBaiViet
        {
            get
            {
                return _MaBaiViet;
            }
            set
            {
                _MaBaiViet = value;
            }
        }


        public string TieuDe
        {
            get
            {
                return _TieuDe;
            }
            set
            {
                _TieuDe = value;
            }
        }



        public string NoiDung
        {
            get
            {
                return _NoiDung;
            }
            set
            {
                _NoiDung = value;
            }
        }


        public clsTheLoai TheLoai
        {
            get
            {
                return _TheLoai;
            }
            set
            {
                _TheLoai = value;
            }
        }

        public clsThanhVien ThanhVien
        {
            get
            {
                return _ThanhVien;
            }
            set
            {
                _ThanhVien = value;
            }
        }

        public DateTime NgayKhoiTao
        {
            get
            {
                return _NgayKhoiTao;
            }
            set
            {
                _NgayKhoiTao = value;
            }
        }


        public int TinhTrang
        {
            get
            {
                return _TinhTrang;
            }
            set
            {
                _TinhTrang = value;
            }
        }


        public int SoLuotXem
        {
            get
            {
                return _SoLuotXem;
            }
            set
            {
                _SoLuotXem = value;
            }
        }
    }
}
